﻿using System;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.ServiceModel.Web;
using System.Xml.Linq;
using System.Linq;
[ServiceContract]
[AspNetCompatibilityRequirements(RequirementsMode=AspNetCompatibilityRequirementsMode.Allowed)]
public class OptionWcf
{
	// Add [WebGet] attribute to use HTTP GET
	[OperationContract]
	public Array DoWork()
	{
        Array uu;
        Linq查询DataContext db = new Linq查询DataContext();
        var 数据 = from 临时表 in db.books
                 orderby 临时表.bookid descending
                 select new
                 {
                     东东 = 临时表.bookname,
                     ID = 临时表.adddate,
                 };

        uu = 数据.ToArray();


        return uu ;
	}

	// Add more operations here and mark them with [OperationContract]
}
